#define _CRT_SECURE_NO_WARNINGS

#include "Sort.h"

void TestBubbleSort()
{
	int arr[] = { 10, 6, 7, 1, 3, 9, 4, 2 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	BubbleSort(arr, sz);
	PrintSort(arr, sz);
}

void TestMergeSort()
{
	int arr[] = { 10, 6, 7, 1, 3, 9, 4, 2 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	MergeSort(arr, 0, sz-1);
	PrintSort(arr, sz);
}

void TestMergeSortNonR()
{
	int arr[] = { 10, 6, 7, 1, 3, 9, 4, 2};
	int sz = sizeof(arr) / sizeof(arr[0]);
	MergeSortNonR(arr, sz);
	PrintSort(arr, sz);
}

int main()
{
	TestBubbleSort();
	TestMergeSort();
	TestMergeSortNonR();

	return 0;
}